package ai.people.netmon.auth.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yuanqinglong
 * @date 2022/1/17 18:29
 */
@Data
@Component
@ConfigurationProperties(prefix = "auth")
public class AuthProperties {

    /**
     * #token存储到redis的过期时间
     */
    private Integer tokenValiditySeconds;
    /**
     * 刷新令牌效度
     */
    private Integer refreshTokenValiditySeconds;
    /**
     * 客户机id
     */
    private String clientId;
    /**
     * 客户秘密
     */
    private String clientSecret;
    /**
     * cookie域
     */
    private String cookieDomain;
    /**
     * cookie最大年龄
     */
    private Integer cookieMaxAge;

}
